/*
 * Copyright 2009-2015 by WWW.KNET.CN  All rights reserved.
 */
package cn.knet.sp.ncrm.modules.customer.analyse.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import cn.knet.sp.ncrm.modules.customer.analyse.vo.AnalyseVo;

/**
 * 分析的工具包
 * @author zhangbin
 * @version 2015 /09/07 17:44:05
 */
@Service
@Transactional(readOnly = true)
public class AnalyseService {

	public long totalPercentage(List<AnalyseVo> list) {
		long total = 0;
		for(AnalyseVo analyseVo:list){
			total = analyseVo.getPredictSalePercentage() + total;
		}
		return  total;
	}
}